﻿@{
    ViewBag.Title = "Home Page";
}
@section featured {
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1 class="name">ChatterBox.</h1>
                <h2 class="detailA">A free web chat tool</h2>
                <h2 class="detailB">...that will probably never be finished.</h2>
            </hgroup>
            <p class="trail">(But it's worth a shot...)</p>
        </div>
    </section>
}

@{
    if ( User.Identity.IsAuthenticated )
    {
        Html.RenderPartial( "../Chat/Lobby" );
    }
    else
    {
    <div id="instructions">
        <h3>It's simple, just do the following:</h3>
        <h3>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" }). Chat.</h3>
    </div>

    }
}